export interface menusByRouterType {
    path:string,
    name:string
}

const getMenusResponse = (routerArr:any[]):menusByRouterType[] => {
    const res = routerArr.map(router => {
        return {
            path:router.path,
            name:router.name
        }
    })
    console.log(res);
    
    return res
}

export default getMenusResponse